﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace System
{
    public static class DateTimeExt
    {
        public static DateTime DayStart(this DateTime value)
        {
            return new DateTime(value.Year, value.Month, value.Day);
        }

        public static DateTime DayEnd(this DateTime value)
        {
            return new DateTime(value.Year, value.Month, value.Day, 23,59,59, 999);
        }
    }
}
